

<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
  <meta charset="utf-8" />
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  
  <title>Ceph 块设备 &mdash; Ceph Documentation</title>
  

  
  <link rel="stylesheet" href="../_static/ceph.css" type="text/css" />
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../_static/graphviz.css" type="text/css" />
  <link rel="stylesheet" href="../_static/css/custom.css" type="text/css" />

  
  
    <link rel="shortcut icon" href="../_static/favicon.ico"/>
  

  
  

  

  
  <!--[if lt IE 9]>
    <script src="../_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
        <script src="../_static/jquery.js"></script>
        <script src="../_static/underscore.js"></script>
        <script src="../_static/doctools.js"></script>
    
    <script type="text/javascript" src="../_static/js/theme.js"></script>

    
    <link rel="index" title="Index" href="../genindex/" />
    <link rel="search" title="Search" href="../search/" />
    <link rel="next" title="块设备基础命令" href="rados-rbd-cmds/" />
    <link rel="prev" title="实验性功能" href="../cephfs/experimental-features/" /> 
</head>

<body class="wy-body-for-nav">

   
  <header class="top-bar">
    

















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../" class="icon icon-home"></a> &raquo;</li>
        
      <li>Ceph 块设备</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
          
            <a href="../_sources/rbd/index.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
  </header>
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search"  style="background: #eee" >
          

          
            <a href="../">
          

          
            
            <img src="../_static/logo.png" class="logo" alt="Logo"/>
          
          </a>

          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../search/" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        
        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../start/intro/">Ceph 简介</a></li>
<li class="toctree-l1"><a class="reference internal" href="../install/">安装 Ceph</a></li>
<li class="toctree-l1"><a class="reference internal" href="../cephadm/">Cephadm</a></li>
<li class="toctree-l1"><a class="reference internal" href="../rados/">Ceph 存储集群</a></li>
<li class="toctree-l1"><a class="reference internal" href="../cephfs/">Ceph 文件系统</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Ceph 块设备</a><ul>
<li class="toctree-l2"><a class="reference internal" href="rados-rbd-cmds/">基本命令</a></li>
<li class="toctree-l2"><a class="reference internal" href="rbd-operations/">运维</a></li>
<li class="toctree-l2"><a class="reference internal" href="rbd-integrations/">对接</a></li>
<li class="toctree-l2"><a class="reference internal" href="man/">手册页</a></li>
<li class="toctree-l2"><a class="reference internal" href="api/">APIs</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../radosgw/">Ceph 对象网关</a></li>
<li class="toctree-l1"><a class="reference internal" href="../mgr/">Ceph 管理器守护进程</a></li>
<li class="toctree-l1"><a class="reference internal" href="../mgr/dashboard/">Ceph 仪表盘</a></li>
<li class="toctree-l1"><a class="reference internal" href="../api/">API 文档</a></li>
<li class="toctree-l1"><a class="reference internal" href="../architecture/">体系结构</a></li>
<li class="toctree-l1"><a class="reference internal" href="../dev/developer_guide/">开发者指南</a></li>
<li class="toctree-l1"><a class="reference internal" href="../dev/internals/">Ceph 内幕</a></li>
<li class="toctree-l1"><a class="reference internal" href="../governance/">项目管理</a></li>
<li class="toctree-l1"><a class="reference internal" href="../foundation/">Ceph 基金会</a></li>
<li class="toctree-l1"><a class="reference internal" href="../ceph-volume/">ceph-volume</a></li>
<li class="toctree-l1"><a class="reference internal" href="../releases/general/">Ceph 版本（总目录）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../releases/">Ceph 版本（索引）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../security/">Security</a></li>
<li class="toctree-l1"><a class="reference internal" href="../glossary/">Ceph 术语</a></li>
<li class="toctree-l1"><a class="reference internal" href="../jaegertracing/">Tracing</a></li>
<li class="toctree-l1"><a class="reference internal" href="../translation_cn/">中文版翻译资源</a></li>
</ul>

            
          
        </div>
        
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../">Ceph</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
<div id="dev-warning" class="admonition note">
  <p class="first admonition-title">Notice</p>
  <p class="last">This document is for a development version of Ceph.</p>
</div>
  <div id="docubetter" align="right" style="padding: 5px; font-weight: bold;">
    <a href="https://pad.ceph.com/p/Report_Documentation_Bugs">Report a Documentation Bug</a>
  </div>

  
  <div class="section" id="ceph">
<h1>Ceph 块设备<a class="headerlink" href="#ceph" title="Permalink to this headline">¶</a></h1>
<p id="index-0">块是一个字节序列（通常是 512 字节）。
在媒体（像硬盘、SSD 、 CD 、软盘、甚至磁带）上存入数据时，
基于块的存储接口是一种成熟且通用的方式。
块设备接口的普遍性使它完美适配海量存储系统，包括 Ceph 。</p>
<p>Ceph 块设备是瘦接口、大小可调且数据条带化到 Ceph 集群内的多个 OSD 。
Ceph 块设备能够均衡多种 <abbr title="Reliable Autonomic Distributed Object Store, 可靠自主的分布式对象存储库">RADOS</abbr>
能力，如快照、复制和强一致性， Ceph 的 块存储客户端通过内核模块或 librbd 库与 Ceph 集群通讯。</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>内核模块可使用 Linux 页缓存。对基于 <code class="docutils literal notranslate"><span class="pre">librbd</span></code> 的应用程序， Ceph 可提供 <a class="reference external" href="./rbd-config-ref/">RBD 缓存</a>。</p>
</div>
<p>Ceph 块设备靠超强的可扩展性提供了高性能，如向<a class="reference external" href="./rbd-ko/">内核模块</a>、或向
abbr:<cite>KVM (kernel virtual machines)</cite> （如 <a class="reference external" href="./qemu-rbd/">QEMU</a> 、依赖
libvirt 和 QEMU 的 <a class="reference external" href="./rbd-openstack">OpenStack</a> 和 <a class="reference external" href="./rbd-cloudstack">CloudStack</a> 云计算系统都可与 Ceph 块设备集成）。你可以用同一个集群同时运营
<a class="reference internal" href="../radosgw/#object-gateway"><span class="std std-ref">Ceph RADOS 网关</span></a>、
<a class="reference internal" href="../cephfs/#ceph-file-system"><span class="std std-ref">CephFS 文件系统</span></a>、和 Ceph 块设备。</p>
<div class="admonition important">
<p class="admonition-title">Important</p>
<p>要使用 Ceph 块设备，你必须有一个在运行的
Ceph 集群。</p>
</div>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="rados-rbd-cmds/">基本命令</a></li>
</ul>
</div>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="rbd-operations/">运维</a><ul>
<li class="toctree-l2"><a class="reference internal" href="rbd-snapshot/">快照</a></li>
<li class="toctree-l2"><a class="reference internal" href="rbd-exclusive-locks/">互斥锁、独占锁</a></li>
<li class="toctree-l2"><a class="reference internal" href="rbd-mirroring/">镜像</a></li>
<li class="toctree-l2"><a class="reference internal" href="rbd-live-migration/">实时迁移</a></li>
<li class="toctree-l2"><a class="reference internal" href="rbd-persistent-read-only-cache/">永久只读缓存</a></li>
<li class="toctree-l2"><a class="reference internal" href="rbd-persistent-write-log-cache/">永久写日志缓存</a></li>
<li class="toctree-l2"><a class="reference internal" href="rbd-encryption/">加密</a></li>
<li class="toctree-l2"><a class="reference internal" href="rbd-config-ref/">配置选项 (librbd)</a></li>
<li class="toctree-l2"><a class="reference internal" href="rbd-replay/">RBD 重放</a></li>
</ul>
</li>
</ul>
</div>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="rbd-integrations/">对接</a><ul>
<li class="toctree-l2"><a class="reference internal" href="rbd-ko/">内核模块</a></li>
<li class="toctree-l2"><a class="reference internal" href="qemu-rbd/">QEMU</a></li>
<li class="toctree-l2"><a class="reference internal" href="libvirt/">libvirt</a></li>
<li class="toctree-l2"><a class="reference internal" href="rbd-kubernetes/">Kubernetes</a></li>
<li class="toctree-l2"><a class="reference internal" href="rbd-nomad/">Nomad</a></li>
<li class="toctree-l2"><a class="reference internal" href="rbd-openstack/">OpenStack</a></li>
<li class="toctree-l2"><a class="reference internal" href="rbd-cloudstack/">CloudStack</a></li>
<li class="toctree-l2"><a class="reference internal" href="iscsi-overview/">LIO iSCSI Gateway</a></li>
<li class="toctree-l2"><a class="reference internal" href="rbd-windows/">Windows</a></li>
</ul>
</li>
</ul>
</div>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="man/">手册页</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../man/8/rbd/">rbd</a></li>
<li class="toctree-l2"><a class="reference internal" href="../man/8/rbd-fuse/">rbd-fuse</a></li>
<li class="toctree-l2"><a class="reference internal" href="../man/8/rbd-nbd/">rbd-nbd</a></li>
<li class="toctree-l2"><a class="reference internal" href="../man/8/rbd-ggate/">rbd-ggate</a></li>
<li class="toctree-l2"><a class="reference internal" href="../man/8/rbdmap/">rbd-map</a></li>
<li class="toctree-l2"><a class="reference internal" href="../man/8/ceph-rbdnamer/">ceph-rbdnamer</a></li>
<li class="toctree-l2"><a class="reference internal" href="../man/8/rbd-replay-prep/">rbd-replay-prep</a></li>
<li class="toctree-l2"><a class="reference internal" href="../man/8/rbd-replay/">rbd-replay</a></li>
<li class="toctree-l2"><a class="reference internal" href="../man/8/rbd-replay-many/">rbd-replay-many</a></li>
</ul>
</li>
</ul>
</div>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="api/">APIs</a><ul>
<li class="toctree-l2"><a class="reference internal" href="api/librbdpy/">librbd (Python)</a></li>
</ul>
</li>
</ul>
</div>
</div>



           </div>
           
          </div>
          <footer>
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
        <a href="rados-rbd-cmds/" class="btn btn-neutral float-right" title="块设备基础命令" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
        <a href="../cephfs/experimental-features/" class="btn btn-neutral float-left" title="实验性功能" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
    </div>

  <hr/>

  <div role="contentinfo">
    <p>
        &#169; Copyright 2016, Ceph authors and contributors. Licensed under Creative Commons Attribution Share Alike 3.0 (CC-BY-SA-3.0).

    </p>
  </div> 

</footer>
        </div>
      </div>

    </section>

  </div>
  

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
   

</body>
</html>